package com.ultrasoft.farmasoft.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class UtilCommon{
	public static String menuId_	= "_menuId";
	public static String subMenuId_	= "_subMenuId";
	public static String optionId_	= "_optionId";
	  
	public static String pharmacyId_= "_pharmacyId";
	public static String userId_	= "_userId";
	
		
	public static String fFront		= "Portada/";	
	public static String fPharmacy 	= "Pharmacy/";	
	
	
	public static String fTransaction_BuyProducts 	= "Pharmacy/Transaction/BuyProducts/";
	public static String fTransaction_SellProducts	= "Pharmacy/Transaction/SellProducts/";
	

	public static String fOperation_NationalTaxation				= "Pharmacy/Operation/NationalTaxation/";
	public static String fOperation_NationalTaxation_InvoiceDosage	= "Pharmacy/Operation/NationalTaxation/InvoiceDosage/";
	public static String fOperation_NationalTaxation_BookSales		= "Pharmacy/Operation/NationalTaxation/BookSales/";
	public static String fOperation_Company	= "Pharmacy/Operation/Company/";
	public static String fOperation_Company_InformationCompany	= "Pharmacy/Operation/Company/InformationCompany/";
	public static String fOperation_Company_ParamsCompany	= "Pharmacy/Operation/Company/ParamsCompany/";
	
	
	public static String fReports_EconomicReports								= "Pharmacy/Reports/EconomicReports/";
	public static String fReports_PersonalArching								= "Pharmacy/Reports/PersonalArching/";
	public static String fReports_LogisticsReports								= "Pharmacy/Reports/LogisticsReports/";
	public static String fReports_LogisticsReports_ProductReportsMissing		= "Pharmacy/Reports/LogisticsReports/ProductReportsMissing/";
	public static String fReports_LogisticsReports_ProductReportsProviders		= "Pharmacy/Reports/LogisticsReports/ProductReportsProviders/";
	public static String fReports_LogisticsReports_ProductReportsExpiredProducts= "Pharmacy/Reports/LogisticsReports/ProductReportsExpiredProducts/";
	
	public static String fAdministration_RRHH 		= "Pharmacy/Administration/RRHH/";	
	public static String fAdministration_Stock 		= "Pharmacy/Administration/StockAdministration/";	
	public static String fAdministration_Stock_Data = "Pharmacy/Administration/StockAdministration/dataStock/";	
	public static String fAdministration_Stock_Items= "Pharmacy/Administration/StockAdministration/itemStock/";	
	public static String fAdministrationGeneral 	= "Pharmacy/Administration/GeneralAdministration/";
	public static String fCountry 					= "Pharmacy/Administration/GeneralAdministration/Country/";
	public static String fLocality 					= "Pharmacy/Administration/GeneralAdministration/Locality/";
	public static String fRegion 					= "Pharmacy/Administration/GeneralAdministration/Region/";
	
		
	public static String fConfiguration 					= "Pharmacy/Configuration/";
	public static String fConfiguration_Customers			= "Pharmacy/Configuration/Customers/";
	public static String fConfiguration_Customers_Pharmacies= "Pharmacy/Configuration/Customers/Pharmacies/";
	public static String fConfiguration_Customers_Provider	= "Pharmacy/Configuration/Customers/Provider/";
	public static String fProductAndActiveSubstance 		= "Pharmacy/Configuration/ProductAndActiveSubstance/";
	public static String fActiveSubstance 					= "Pharmacy/Configuration/ProductAndActiveSubstance/ActiveSubstance/";
	public static String fProducts 							= "Pharmacy/Configuration/ProductAndActiveSubstance/Products/";
	public static String fTypeOfComposition 				= "Pharmacy/Configuration/ProductAndActiveSubstance/TypeOfComposition/";

	// this is to sub menu providers
	public static String  fMainProvider = "Pharmacy/Administration/Provider/";
	public static String  fproviders 	= "Pharmacy/Administration/Provider/ManagerProvider/";
	public static String  fvisitors 	= "Pharmacy/Administration/Provider/ManagerVisitor/";
	
	// this url to context
	public static String  fReferenceAdd = "referenceAdd/";
	
	// this is Portada
	public static String pHomeDepartments 	= "Portada/Department/";
	
	
	
	public static int getPeriod(){
        DateFormat dateFormat = new SimpleDateFormat("yyyyMM");
        return Integer.parseInt(dateFormat.format(Calendar.getInstance().getTime()));
    }
	public static String getDateSpanishLatin() {	
        DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
        return dateFormat.format(Calendar.getInstance().getTime());
    }
	public static long getFecha_yyyyMMdd(){
        DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
        return Long.parseLong(dateFormat.format(Calendar.getInstance().getTime()));
    }
}
